<layout name='layout' />

<div class="admin-main">
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
		<legend>编辑</legend>
	</fieldset>

	<form id="ajaxForm" class="layui-form" method="post" action="<{:U('User/edit')}>">
		<div class="layui-form-item">
			<label class="layui-form-label">用户名</label>
			<div class="layui-form-mid">
				<strong><{$list.username}></strong>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">密码</label>
			<div class="layui-input-inline">
				<input type="password" id="password" name="password" lay-verify="_password" class="layui-input">
			</div>
			<p class="layui-form-mid layui-word-aux">不修改请留空</p>
		</div>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">状态</label>
			<div class="layui-input-inline">
				<input type="radio" name="status" value="1" title="开启" <php>if($list['status']==='1')echo checked;</php>>
				<input type="radio" name="status" value="0" title="关闭" <php>if($list['status']==='0')echo checked;</php>>
			</div>
		</div>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">用户组</label>
			<div class="layui-input-inline">
				<select id="group" name="group" lay-verify="required">
					<option value="">==请选择==</option>
					<volist name="group" id="vo">
						<option value="<{$vo.id}>"><{$vo.name}></option>
					</volist>
				</select>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">姓名</label>
			<div class="layui-input-inline">
				<input type="text" id="name" name="name" value="<{$list.name}>" class="layui-input" lay-verify="required">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">电话</label>
			<div class="layui-input-inline">
				<input type="text" id="phone" name="phone" value="<{$list.phone}>" class="layui-input">
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
			</div>
		</div>
		<input type="hidden" name="id" value="<{$list['id']}>" />
	</form>
</div>
<script type="text/javascript">
$("#group").val("<{$list['group']}>");
</script>